home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / hgraphic.zip / GRAPHICS.H < prev    next >
Text File  |  1988-01-20  |  352b  |  20 lines

  1. #define UP    1
  2. #define DOWN    2
  3. #define LEFT    3
  4. #define RIGHT    4
  5.  
  6. #define OVERWRITE 2
  7. #define WHITE    1
  8. #define BLACK    0
  9. #define XOR    -1
  10.  
  11. #define byte_addr(x,y) (((y)/4)*90 + ((y)&3)*0x2000 + ((x)/8))
  12. #define bit_pos(x)     (1 << (7 - ((x)&7)))
  13. #define bit_num(x)     ((x)&7)
  14.  
  15. struct shape_type {
  16.   int x;
  17.   int y;
  18.   char *shape_array;
  19. };
  20.